package design.patterns.factory;

/**
 * @author daxue0929
 * @date 2023/4/11
 */

public abstract class Coffee {
    public String name;

    //加奶
    public void addMilk(){
        System.out.println("加奶");
    }

    //加糖
    public void addSugar() {
        System.out.println("加糖");
    }

    public abstract String getName();

    public Coffee setName(String name) {
        this.name = name;
        return this;
    }
}
